﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AssetsSys.Model;

namespace AssetsSys.model
{
    /// <summary>
    /// 部门表
    /// </summary>
    public class Department:BaseEntity
    {
        /// <summary>
        /// 部门名称
        /// </summary>
        public string DepartmentName { get; set; }
        /// <summary>
        /// 部门权限
        /// </summary>
        [ForeignKey(nameof(Permission))]
        public Guid PermissionId { get; set; }
        public Permission Permission { get; set; }

    }
}
